<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; 
if(!$_GET['t']){
	header("Location: ".$_SERVER['url']."?t=".time());
	exit('page error');
}
?>
<?php $this->need('header.php'); ?>

<div class="col-mb-12 col-8" id="main" role="main">

    <div id="">
        <div class="mdui-card content-body">

            <div class="mdui-card-media">

                <div class="mdui-card-menu">
                    <button class="mdui-btn mdui-btn-icon mdui-text-color-white"><i
                                class="mdui-icon material-icons">share</i></button>
                </div>


                <div style="background-image: url('<?php echo getRandomImg(); ?>');height: 280px" align='left'>

                    <div class="mdui-card-media-covered">
                        <div class="mdui-card-primary archive-content">
                            <div class="mdui-card-primary-title"><?php $this->title() ?></div>
                            <div style="color: #fff" class="mdui-card-primary-subtitle daily-card-subtitle a-li">
                                作者：<?php $this->author(); ?>&nbsp;&nbsp;|&nbsp;&nbsp;
                                分类：<?php $this->category(',', true, 'none'); ?>
                                &nbsp;&nbsp;|&nbsp;&nbsp;标签：<?php $this->tags(',', true, 'none'); ?></br>
                                时间：<?php $this->date('Y-m-d H:i'); ?>
                            </div>
                        </div>
                    </div>

                </div>

            </div>

            <!-- 卡片的内容 -->
            <div class="mdui-card-content" id="content-body" ><?php $this->content(); ?></div>

            <!-- 卡片的按钮 -->
<!--            <div class="mdui-card-actions" id="expand_more">-->
<!--                <button class="mdui-btn mdui-btn-icon mdui-float-right"><i-->
<!--                            class="mdui-icon material-icons">expand_more</i></button>-->
<!--            </div>-->
        </div>


        <div class="mdui-card  content-body">
            <div id="post_nav_bar" class="mdui-card-actions" style="text-align: center">
                <button class="mdui-btn mdui-ripple">上一篇:<?php $this->thePrev('%s','已经是第一篇了呢'); ?></button>
                <button class="mdui-btn mdui-ripple">下一篇: <?php $this->theNext('%s', '已经是最后一篇呢'); ?></button>
            </div>
        </div>


        <div class="mdui-card  content-body" id="comment-1" style="padding: 50px">
            <?php $this->need('comments.php'); ?>
        </div>


    </div>

</div><!-- end #main-->
<script src="<?php $this->options->themeUrl('inc/js/post.js'); ?>"></script>
<link id="hightlight" href="//apps.bdimg.com/libs/highlight.js/9.1.0/styles/atelier-dune-light.min.css" rel="stylesheet">
<script src="//apps.bdimg.com/libs/highlight.js/9.1.0/highlight.min.js"></script>
<script>
    hljs.initHighlightingOnLoad();
</script>


<?php #$this->need('sidebar.php'); ?>
<?php //$this->need('footer.php'); ?>
